package edu.ustb.railwayticket.config;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConfigurationController {
    @Resource
    private ConfigProperties configProperties;

    @RequestMapping("/a")
    public String sayHello(String name) {
        return configProperties.getSayhello() + name;
    }
}
